package com.xckx.Visio.Docs.PageSheet;

import java.awt.*;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright (c) 2007</p>
 * <p>Company: </p>
 * @author not attributable
 * @version 1.0
 */

public class Layer {
  private int IX;
  private String name = null;
  private String color = "";
  private int status = 0;
  private boolean ifVisible= true;
  private boolean ifPrint  = true;
  private boolean ifActive = false;
  private boolean ifLocked = false;
  private boolean ifSnaped = true;
  private boolean ifGlued  = true;
  private String nameUniv  = null;
  private float colorTrans = 0.0f;

  public Layer() {
  }

  public Layer(int ix) {
    IX = ix;
  }

  public Layer(int ix, String n, String c, int s, boolean v, boolean p, boolean a, boolean l,
               boolean snap, boolean glue, String un, float ct) {
    IX         = ix;
    name       = n;
    color      = c;
    status     = s;
    ifVisible  = v;
    ifPrint    = p;
    ifActive   = a;
    ifLocked   = l;
    ifSnaped   = snap;
    ifGlued    = glue;
    nameUniv   = un;
    colorTrans = ct;
  }

  public int getIX() {
    return IX;
  }

  public String getName() {
    return name;
  }

  public String getColor() {
    return color;
  }

  public int getStatus() {
    return status;
  }

  public boolean getVisible() {
    return ifVisible;
  }

  public boolean getVisible(int graphicsType) {
    if (graphicsType == GraphicsDevice.TYPE_RASTER_SCREEN)
      return ifVisible;
    else
      return ifPrint;
  }

  public boolean getPrint() {
    return ifPrint;
  }

  public boolean getActive() {
    return ifActive;
  }

  public boolean getLock() {
    return ifLocked;
  }

  public boolean getSnaped() {
    return ifSnaped;
  }

  public boolean getGlued() {
    return ifGlued;
  }

  public String getNameUniv() {
    return nameUniv;
  }

  public float getColorTrans() {
    return colorTrans;
  }

//

  public void setIX(int ix) {
    IX = ix;
  }

  public void setName(String n) {
    name = n;
  }

  public void setColor(String c) {
    color = c;
  }

  public void setStatus(int s) {
    status = s;
  }

  public void setVisible(boolean v) {
    ifVisible = v;
  }

  public void setPrint(boolean p) {
    ifPrint = p;
  }

  public void setActive(boolean a) {
    ifActive = a;
  }

  public void setLock(boolean l) {
    ifLocked = l;
  }

  public void setSnaped(boolean s) {
    ifSnaped = s;
  }

  public void setGlued(boolean g) {
    ifGlued = g;
  }

  public void setNameUniv(String n) {
    nameUniv = n;
  }

  public void setColorTrans(float t) {
    colorTrans = t;
  }

}